import Vue from 'vue'
import Vuex from 'vuex'

import subject from './modules/subject.js'
import student from './modules/student.js'
import classes from './modules/classes.js'
import upimg from './modules/upimg'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    userInfo: null
  },
  mutations: {
    GetUserInfo(state, v) {
      state.userInfo = v
    }
  },
  modules: {
    subject,
    student,
    classes,
    upimg
  }
})
